﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Shippers.aspx.cs" Inherits="Shippers" %>

<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Shippers</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table border="0" cellpadding="1" width="100%">
        <tr>
            <td width="15%">
                Shipper ID:
            </td>
            <td>
                <asp:TextBox ID="txtShipperID" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Company Name:
            </td>
            <td>
                <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="errorCompanyName" runat="server" ControlToValidate="txtCompanyName"
                    ErrorMessage="Please Enter Company Name"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Phone:
            </td>
            <td>
                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="errorPhone" runat="server" ControlToValidate="txtPhone"
                    ErrorMessage="Please Enter Phone"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPhone"
                    ErrorMessage="Wrong Phone" ValidationExpression="\(?\d?\d?\d?\)?\ *\d\d\d\-?\ ?\d\d\d\d\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>
    </table>
    <table>
        <div>
            <tr>
                <td colspan="4">
                    <asp:Button ID="btnNew" runat="server" Text="New" Width="65px" OnClick="btnNew_Click"
                        CausesValidation="False" />
                    <asp:Button ID="btnAdd" runat="server" Text="Add" Width="65px" OnClick="btnAdd_Click" />
                    <asp:Button ID="btnUpdate" runat="server" Text="Update" Width="65px" OnClick="btnUpdate_Click" />
                    <asp:Button ID="btnDelete" runat="server" Text="Delete" Width="65px" OnClick="btnDelete_Click"
                        CausesValidation="False" />
                </td>
            </tr>
        </div>
        <tr>
            <td colspan="3">
                <asp:TextBox ID="txtSearchName" runat="server" Width="210px"></asp:TextBox>
                <asp:DropDownList ID="cbSearch" runat="server" Width="179px">
                    <asp:ListItem>Company Name</asp:ListItem>
                    <asp:ListItem>Phone</asp:ListItem>
                </asp:DropDownList>
                <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click"
                    CausesValidation="False" />
            </td>
        </tr>
        <tr>
            <td colspan="1">
                <asp:Button ID="btnReload" runat="server" Text="Reload" OnClick="btnReload_Click"
                    CausesValidation="False" />
            </td>
        </tr>
    </table>
    
    <asp:GridView ID="gvShipper" runat="server" Width="300px" OnPageIndexChanging="gvShipper_PageIndexChanging"
        OnSelectedIndexChanged="gvShipper_SelectedIndexChanged" AutoGenerateColumns="false">
        <Columns>
            <asp:BoundField DataField="shipperid" HeaderText="Shipper ID" />
            <asp:BoundField DataField="companyname" HeaderText="Company Name" />
            <asp:BoundField DataField="phone" HeaderText="Phone" />
        </Columns>
    </asp:GridView>
    <%--</div>
    </form>
</body>
</html>
--%>
</asp:Content>
